using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_DM_THUOC: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_DM_THUOCFields
		{
			ID,
			MAVT,
			MAHANGHOA,
			TENVT,
			MANHOMDV,
			MANHOMVATTU,
			DVT,
			THUOCTINHDONGGOI,
			MANSX,
			TONTOIDA,
			TONTOITHIEU,
			VITRILUUTRU,
			GHICHU,
			CHINHANH_DB,
			NHACC,
			Infoinclude,
			Usage,
			NameSearch,
            NhietDo,
            AnhSang,
            TamTay,
            AmUot,
            HuongThan,
            BanTheoDon,
            TenNSX,
            ThuocBH,
            Field1,
            Field2,
            Field3
		}
		#endregion

		#region Data Members

			long _iD;
			string _mAVT;
			string _mAHANGHOA;
			string _tENVT;
			string _mANHOMDV;
			string _mANHOMVATTU;
			int? _dVT;
			string _tHUOCTINHDONGGOI;
			string _mANSX;
			double? _tONTOIDA;
			double? _tONTOITHIEU;
			string _vITRILUUTRU;
			string _gHICHU;
			string _cHINHANH_DB;
			string _nHACC;
			string _infoinclude;
			string _usage;
			string _nameSearch;
            string _NhietDo;
            byte _AnhSang;
            byte _TamTay;
            byte _AmUot;
            byte _HuongThan;
            byte _BanTheoDon;
            string _tenNSX;
            byte _ThuocBH;
            string _field1;
            string _field2;
            string _field3;

		#endregion

		#region Properties

		public long  ID
		{
			 get { return _iD; }
			 set
			 {
				 if (_iD != value)
				 {
					_iD = value;
				 }
			 }
		}

		public string  MAVT
		{
			 get { return _mAVT; }
			 set
			 {
				 if (_mAVT != value)
				 {
					_mAVT = value;
				 }
			 }
		}

		public string  MAHANGHOA
		{
			 get { return _mAHANGHOA; }
			 set
			 {
				 if (_mAHANGHOA != value)
				 {
					_mAHANGHOA = value;
				 }
			 }
		}

		public string  TENVT
		{
			 get { return _tENVT; }
			 set
			 {
				 if (_tENVT != value)
				 {
					_tENVT = value;
				 }
			 }
		}

		public string  MANHOMDV
		{
			 get { return _mANHOMDV; }
			 set
			 {
				 if (_mANHOMDV != value)
				 {
					_mANHOMDV = value;
				 }
			 }
		}

		public string  MANHOMVATTU
		{
			 get { return _mANHOMVATTU; }
			 set
			 {
				 if (_mANHOMVATTU != value)
				 {
					_mANHOMVATTU = value;
				 }
			 }
		}

		public int?  DVT
		{
			 get { return _dVT; }
			 set
			 {
				 if (_dVT != value)
				 {
					_dVT = value;
				 }
			 }
		}

		public string  THUOCTINHDONGGOI
		{
			 get { return _tHUOCTINHDONGGOI; }
			 set
			 {
				 if (_tHUOCTINHDONGGOI != value)
				 {
					_tHUOCTINHDONGGOI = value;
				 }
			 }
		}

		public string  MANSX
		{
			 get { return _mANSX; }
			 set
			 {
				 if (_mANSX != value)
				 {
					_mANSX = value;
				 }
			 }
		}

		public double?  TONTOIDA
		{
			 get { return _tONTOIDA; }
			 set
			 {
				 if (_tONTOIDA != value)
				 {
					_tONTOIDA = value;
				 }
			 }
		}

		public double?  TONTOITHIEU
		{
			 get { return _tONTOITHIEU; }
			 set
			 {
				 if (_tONTOITHIEU != value)
				 {
					_tONTOITHIEU = value;
				 }
			 }
		}

		public string  VITRILUUTRU
		{
			 get { return _vITRILUUTRU; }
			 set
			 {
				 if (_vITRILUUTRU != value)
				 {
					_vITRILUUTRU = value;
				 }
			 }
		}

		public string  GHICHU
		{
			 get { return _gHICHU; }
			 set
			 {
				 if (_gHICHU != value)
				 {
					_gHICHU = value;
				 }
			 }
		}

		public string  CHINHANH_DB
		{
			 get { return _cHINHANH_DB; }
			 set
			 {
				 if (_cHINHANH_DB != value)
				 {
					_cHINHANH_DB = value;
				 }
			 }
		}

		public string  NHACC
		{
			 get { return _nHACC; }
			 set
			 {
				 if (_nHACC != value)
				 {
					_nHACC = value;
				 }
			 }
		}

		public string  Infoinclude
		{
			 get { return _infoinclude; }
			 set
			 {
				 if (_infoinclude != value)
				 {
					_infoinclude = value;
				 }
			 }
		}

		public string  Usage
		{
			 get { return _usage; }
			 set
			 {
				 if (_usage != value)
				 {
					_usage = value;
				 }
			 }
		}

		public string  NameSearch
		{
			 get { return _nameSearch; }
			 set
			 {
				 if (_nameSearch != value)
				 {
					_nameSearch = value;
				 }
			 }
		}
        public string NhietDo
        {
            get { return _NhietDo; }
            set
            {
                if (_NhietDo != value)
                {
                    _NhietDo = value;
                }
            }
        }
        public byte AnhSang
        {
            get { return _AnhSang; }
            set
            {
                if (_AnhSang != value)
                {
                    _AnhSang = value;
                }
            }
        }
        public byte TamTay
        {
            get { return _TamTay; }
            set
            {
                if (_TamTay != value)
                {
                    _TamTay = value;
                }
            }
        }
        public byte AmUot
        {
            get { return _AmUot; }
            set
            {
                if (_AmUot != value)
                {
                    _AmUot = value;
                }
            }
        }
        public byte HuongThan
        {
            get { return _HuongThan; }
            set
            {
                if (_HuongThan != value)
                {
                    _HuongThan = value;
                }
            }
        }
        public byte BanTheoDon
        {
            get { return _BanTheoDon; }
            set
            {
                if (_BanTheoDon != value)
                {
                    _BanTheoDon = value;
                }
            }
        }
        public string TenNSX
        {
            get { return _tenNSX; }
            set
            {
                if (_tenNSX != value)
                {
                    _tenNSX = value;
                }
            }
        }
        public byte ThuocBH
        {
            get { return _ThuocBH; }
            set
            {
                if (_ThuocBH != value)
                {
                    _ThuocBH = value;
                }
            }
        }
        public string Field1
        {
            get
            {
                return _field1;
            }
            set
            {
                if (_field1 != value)
                {
                    _field1 = value;
                }
            }
        }
        public string Field2
        {
            get
            {
                return _field2;
            }
            set
            {
                if (_field2 != value)
                {
                    _field2 = value;
                }
            }
        }
        public string Field3
        {
            get
            {
                return _field3;
            }
            set
            {
                if (_field3 != value)
                {
                    _field3 = value;
                }
            }
        }
		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("ID", "ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("MAVT", "MAVT"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("MAVT", "MAVT",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("MAHANGHOA", "MAHANGHOA",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("TENVT", "TENVT",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("MANHOMDV", "MANHOMDV",30));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("MANHOMVATTU", "MANHOMVATTU",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("THUOCTINHDONGGOI", "THUOCTINHDONGGOI",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("MANSX", "MANSX",30));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("VITRILUUTRU", "VITRILUUTRU",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("GHICHU", "GHICHU",100));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("CHINHANH_DB", "CHINHANH_DB",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("NHACC", "NHACC",30));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Infoinclude", "Infoinclude",500));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Usage", "Usage",500));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("NameSearch", "NameSearch", 500));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("NhietDo", "NhietDo", 100));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("TenNSX", "TenNSX", 100));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field1", "Field1", 1073741823));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field2", "Field2", 1073741823));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field3", "Field3", 1073741823));
		}

		#endregion

	}
}
